Socket
Socket
Sign inDemoInstall

git-semver-tags

Package Overview
Dependencies
66
Maintainers
8
Versions
32
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    git-semver-tags

Get all git semver tags of your repository in reverse chronological order


Version published
Weekly downloads
2.3M
decreased by-4.93%
Maintainers
8
Install size
1.27 MB
Created
Weekly downloads
 

Package description

What is git-semver-tags?

The git-semver-tags npm package is a utility that retrieves all semantic version (semver) tags from a Git repository. It is useful for versioning and release management in software projects.

What are git-semver-tags's main functionalities?

Retrieve Semver Tags

This feature allows you to retrieve all semantic version tags from the current Git repository. The code sample demonstrates how to use the git-semver-tags package to get the tags and log them to the console.

const gitSemverTags = require('git-semver-tags');
gitSemverTags((err, tags) => {
  if (err) {
    console.error(err);
  } else {
    console.log(tags);
  }
});

Other packages similar to git-semver-tags

Readme

Source

NPM version Build Status Dependency Status Coverage Status

Get all git semver tags of your repository in reverse chronological order

Note: since lightweight tags do not store date information, the date of a tag is the date of the commit that is tagged on. If two tags on one commit, the order is not guaranteed.

Install

$ npm install --save git-semver-tags

Usage

var gitSemverTags = require('git-semver-tags');

// gitSemverTags([options,] callback)

gitSemverTags(function(err, tags) {
  console.log(tags);
  //=> [ 'v2.0.0', 'v1.0.0' ]
});
$ npm install --global git-semver-tags
$ git-semver-tags
v2.0.0
v1.0.0

Options

  • opts.lernaTags: extract lerna style tags (foo-package@2.0.0) from the git history, rather than v1.0.0 format.
  • opts.package: what package should lerna style tags be listed for, e.g., foo-package.
  • opts.tagPrefix: specify a prefix for the git tag to be ignored from the semver checks

License

MIT © Steve Mao

Keywords

FAQs

Last updated on 05 Nov 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc